package com.hdyg.sixg.activity.home;

import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.hdyg.sixg.R;
import com.hdyg.sixg.activity.common.BaseActivity;
import com.scwang.smartrefresh.layout.SmartRefreshLayout;
import butterknife.BindView;

/**
 * @author CZB
 * @describe 充值记录
 * @time 2019/4/4 16:49
 */
public class RechargeRecordActivity extends BaseActivity {

    @BindView(R.id.ll_top_left)
    LinearLayout llTopLeft;
    @BindView(R.id.tvTopTitle)
    TextView tvTopTitle;
    @BindView(R.id.rv_main)
    RecyclerView rvMain;
    @BindView(R.id.srl_refresh)
    SmartRefreshLayout srlRefresh;

    @Override
    protected int getLayoutId() {
        return R.layout.activity_recyclerview;
    }

    @Override
    protected void initView() {
        onClickListener();
        tvTopTitle.setText(R.string.recharge_record);
        rvMain.setLayoutManager(new LinearLayoutManager(mContext));
    }
    private void onClickListener(){
        srlRefresh.setOnRefreshListener(refreshLayout -> {
            srlRefresh.finishRefresh(2000);//传入false表示刷新失败
        });
        llTopLeft.setOnClickListener(v -> finish());
    }

    @Override
    protected void initData() {

    }

    @Override
    protected void createPresenter() {

    }


}
